package com.xgy.ordering;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@Slf4j
@SpringBootApplication
public class FoodOrderApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(FoodOrderApplication.class);
    }

    public static void main(String[] args) {
        log.info("🚀 开始启动订餐系统性能测试平台...");
        SpringApplication.run(FoodOrderApplication.class, args);
        log.info("✅ 应用启动完成！访问地址: http://localhost:8080");
    }
}